package ai.people.netmon.framework.domain.gang.construction.request;

import ai.people.netmon.framework.domain.gang.construction.valid.ValidationGroup;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhenglin
 * @since 2022-07-19
 */
@Data
public class LabelLibSaveOrUpdateRequest implements Serializable {
    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空",groups = {ValidationGroup.Update.class})
    private Long id;

    /**
     * 父ID 0为根节点
     */
    @NotNull(message = "父ID不能为空")
    private Long parentId;

    /**
     * 标签名
     */
    @NotBlank(message = "标签名不能为空")
    private String labelName;

    /**
     * 训练标签 1开启 0关闭
     */
    @NotNull(message = "训练标签不能为空",groups = {ValidationGroup.Update.class})
    private Integer trainFlag;
}
